package br.com.miranda.william.ws;

import br.com.miranda.william.services.HelloWorldServices;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * Created by Admin on 8/13/14.
 */
@WebService
public class HelloWorldWs {

    private HelloWorldServices services;

    @WebMethod(exclude = true)
    public void setServices(HelloWorldServices services){
        this.services =  services;
    }

    @WebMethod(exclude = true)
    public HelloWorldServices getServices(){
        return this.services;
    }

    @WebMethod(operationName = "getHelloWorld")
    public String getHelloWorld(){
        return this.services.getHelloWorld();
    }
}
